Skip to content

Added mpl_15 decorator #18682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2017
Merged

Added mpl_15 decorator #18682

merged 1 commit into from
Dec 8, 2017

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Dec 7, 2017

FWIW the functionality here could be slightly different, because the previous skip if items occurred in the middle of the function bodies instead of wrapping the function, so the first few lines of code within those functions would run in instances that are being skipped today.

I've ignored that nuance because I find it strange that we would only want to run part of the test without any assertions for different versions of matplotlib, but if you feel it needs to be accounted for in some other fashion (say separate test cases) let me know

@codecov
Copy link

codecov bot commented Dec 7, 2017

Codecov Report

Merging #18682 into master will decrease coverage by 0.01%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18682      +/-   ##
==========================================
- Coverage   91.59%   91.57%   -0.02%     
==========================================
  Files         153      153              
  Lines       51257    51266       +9     
==========================================
  Hits        46949    46949              
- Misses       4308     4317       +9
Flag Coverage Δ
#multiple 89.44% <88.88%> (ø) ⬆️
#single 40.69% <88.88%> (-0.1%) ⬇️
Impacted Files Coverage Δ
pandas/util/_test_decorators.py 93.33% <88.88%> (-1.91%) ⬇️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.81% <0%> (-0.1%) ⬇️
pandas/core/indexes/datetimes.py 95.59% <0%> (-0.1%) ⬇️
pandas/util/testing.py 82.01% <0%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9629fef...3e38b0c. Read the comment docs.

@jreback jreback added Testing pandas testing functions or related to the test suite Visualization plotting labels Dec 8, 2017
@jreback jreback added this to the 0.22.0 milestone Dec 8, 2017
@@ -519,14 +519,14 @@ def test_finder_hourly(self):
xp = Period('1/1/1999', freq='H').ordinal
assert rs == xp

@td.skip_if_mpl_1_5
@pytest.mark.slow
def test_gaps(self):
ts = tm.makeTimeSeries()
ts[5:25] = np.nan
_, ax = self.plt.subplots()
ts.plot(ax=ax)
lines = ax.get_lines()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, we occasionally do this. if its actually important then could split into 2 tests. not a big deal here.

@jreback jreback merged commit f6e4292 into pandas-dev:master Dec 8, 2017
@jreback
Copy link
Contributor

jreback commented Dec 8, 2017

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Visualization plotting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants